package com.lollipop.ucenter.rpc.repository;

import com.lollipop.common.annotation.MybatisDao;
import com.lollipop.common.persistence.CrudDao;
import com.lollipop.ucenter.rpc.model.Resource;
import org.springframework.stereotype.Repository;

import java.util.Set;

@MybatisDao
@Repository
public interface ResourceDao extends CrudDao<Resource> {

    /**
     * 查找角色拥有资源集合
     *
     * @param roleId
     * @return
     */
    public Set<String> findResourcesByRoleId(String roleId);
}